# -*- coding:utf-8 -*-
# super()
# 调用父类方法
# 多使用在单继承
class Master_Kurong(object):
    def __init__(self):
        self.kunfu_kurong = "六脉神剑"

    def kurong(self):
        print(f"枯荣大师的功夫--{self.kunfu_kurong}")


class Student_Zhangsan(Master_Kurong):
    def __init__(self):
        super().__init__()    # 与Master_Kurong.__init__(self)等价
        print(self.kunfu_kurong)
        self.kurong()


func = Student_Zhangsan()
